package com.example.hackaton_it_planet.data.model.entities

import androidx.room.PrimaryKey
import com.example.hackaton_it_planet.data.model.Purchase

data class PurchaseEntity(
    @PrimaryKey(autoGenerate = true)
    val id: Int,
    val name: String,
    val price: Double,
    val walletId: Int
) {
    fun toPurchase(): Purchase =
        Purchase(
            id, name, price, walletId
        )
}
